import http from '@/utils/http'
import type { RouteRecordNormalized } from 'vue-router';
import { UserState } from '@/store/modules/user/types';

export function getUserInfo() {
  return http.post<UserState>('/admin/index/getUserInfo');
}

export function getMenuList() {
  return http.post<RouteRecordNormalized[]>('/api/user/menu');
}
